package com.wj.dubbo.service.welfareshop.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wj.dubbo.service.welfareshop.entity.WsAftersaleDetail;
import com.wj.dubbo.service.welfareshop.mapper.WsAftersaleDetailMapper;
import com.wj.dubbo.service.welfareshop.service.IWsAftersaleDetailService;

/**
 * <p>
 * 售后详情表 服务实现类
 * </p>
 *
 * @author lee
 * @since 2017-05-22
 */
@Service
public class WsAftersaleDetailServiceImpl extends ServiceImpl<WsAftersaleDetailMapper, WsAftersaleDetail> implements IWsAftersaleDetailService {

	/**
	 * 根据售后ID查找售后商品详情
	 */
	@Override
	public List<WsAftersaleDetail> queryByAftersaleId(String aftersaleId) {
		Wrapper<WsAftersaleDetail> queryWrapper = new EntityWrapper<WsAftersaleDetail>();
		queryWrapper.eq("aftersale_id",aftersaleId);
		List<WsAftersaleDetail> afterSaleDetails = this.selectList(queryWrapper);
		return afterSaleDetails;
	}
	
}
